// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '仓库表',
        name: 'warehousemodel',
        url: "/warehousemodel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"WarehouseCode":"","WarehouseName":"","Capacity":"","Warehouseaddr":"","deptId":[],"userId":"","status":"","WarehouseDesc":""};
    const editFormOptions = [[{"title":"仓库编号","field":"WarehouseCode"}],
                              [{"title":"仓库名称","field":"WarehouseName"}],
                              [{"title":"仓库容量","field":"Capacity","type":"number"}],
                              [{"title":"仓库地址","field":"Warehouseaddr"}],
                              [{"dataKey":"部门级联","data":[],"title":"部门Id","field":"deptId","type":"cascader"}],
                              [{"dataKey":"用户列表","data":[],"title":"仓库主管","field":"userId","type":"select"}],
                              [{"dataKey":"status","data":[],"title":"状态","field":"status","type":"select"}],
                              [{"title":"备注","field":"WarehouseDesc"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'Id',title:'主键',type:'bigint',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'WarehouseCode',title:'仓库编号',type:'string',width:110,align:'left',sort:true},
                       {field:'WarehouseName',title:'仓库名称',type:'string',width:110,align:'left'},
                       {field:'Capacity',title:'仓库容量',type:'int',width:110,align:'left'},
                       {field:'Warehouseaddr',title:'仓库地址',type:'string',width:110,align:'left'},
                       {field:'deptId',title:'部门Id',type:'string',bind:{ key:'部门级联',data:[]},width:220,align:'left'},
                       {field:'userId',title:'仓库主管',type:'int',bind:{ key:'用户列表',data:[]},width:110,align:'left'},
                       {field:'status',title:'状态',type:'int',bind:{ key:'status',data:[]},width:110,align:'left'},
                       {field:'WarehouseDesc',title:'备注',type:'string',width:110,align:'left'},
                       {field:'IsDel',title:'删除标识',type:'sbyte',width:110,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'CreateID',title:'创建人id',type:'int',width:100,hidden:true,align:'left'},
                       {field:'ModifyID',title:'修改人id',type:'int',width:100,hidden:true,align:'left'},
                       {field:'InventoryNum',title:'库存数量',type:'int',width:120,align:'left'},
                       {field:'InventoryMomeny',title:'库存金额',type:'decimal',width:120,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}